home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / CDTV / cdtvtools-11 / includes / bookmark.h next >
Encoding:
C/C++ Source or Header  |  1991-06-24  |  1.6 KB  |  72 lines

  1. #ifndef BOOKMARK_H
  2. #define BOOKMARK_H
  3. /*
  4. ** Bookmark/Cardmark Device Include File
  5. **
  6. **    Copyright (c) 1991 Commodore Electronics Ltd.
  7. **    All rights reserved. Confidential and Proprietary.
  8. **    CDTV is a trademark of Commodore Electronics Ltd.
  9. **
  10. **    Written by: Carl Sassenrath
  11. **                Sassenrath Research, Ukiah, CA
  12. **
  13. **    Version of: March 8, 1991
  14. */
  15.  
  16. #ifndef    EXEC_IO_H
  17. #include <exec/io.h>
  18. #endif
  19.  
  20. /*
  21. ** Bookmark (Cardmark) Device Names
  22. **
  23. **    Names passed to OpenDevice to identify the device.
  24. */
  25. #define    BOOKMARK_NAME    "bookmark.device"
  26. #define    CARDMARK_NAME    "cardmark.device"
  27.  
  28. /*
  29. ** Bookmark (Cardmark) Device Commands
  30. */
  31. #define    BD_TYPEMEM     9
  32. #define    BD_SIZEMEM    10
  33. #define    BD_INITMEM    11
  34. #define    BD_CREATEDEV    12
  35. #define    BD_CREATE    13
  36. #define    BD_DELETE    14
  37. #define    BD_MAXSIZE    15
  38. #define    BD_AVAIL    16
  39. #define    BD_SIZEOF    17
  40. #define    BD_SETPRI    18
  41. #define    BD_CHECK    19
  42. #define    BD_PURGE    20
  43. #define    BD_DUMP        21
  44. #define    BD_LOAD        22
  45.  
  46. /*
  47. ** Bookmark (CardMark) Device Errors
  48. */
  49. #define    BDERR_OPENFAIL    -1    /* OpenDevice() failed        */
  50. #define    BDERR_ABORTED    -2    /* Command has been aborted    */
  51. #define    BDERR_NOTVALID    -3    /* IO request not valid        */
  52. #define    BDERR_NOCMD    -4    /* No such command        */
  53. #define    BDERR_BADARG    -5    /* Bad command argument        */
  54. #define    BDERR_EXISTS    -6    /* Bookmark already exists    */
  55. #define    BDERR_NOMARK    -7    /* No bookmark present        */
  56. #define    BDERR_TOOBIG    -8    /* Bookmark larger than allowed    */
  57. #define    BDERR_NOSPACE    -9    /* Not enough space in memory    */
  58. #define    BDERR_PASTEND    -10    /* Length + Offset > Bookmark    */
  59.  
  60. /*
  61. ** Bookmark ID Structure
  62. */
  63. struct BookmarkID
  64. {
  65.     UWORD Manufacturer;
  66.     UWORD Product;
  67. };
  68.  
  69. #define    MAKEBID(m,p) ((ULONG)(((UWORD)(m)<<16)|(UWORD)(p)))
  70.  
  71. #endif    /* BOOKMARK_H */
  72.